#ifndef WIN32_H
#define WIN32_H
#ifdef WIN32

// For socket(), connect(), send(), and recv()
#include<winsock2.h>
#include<ws2tcpip.h>
#include<strsafe.h>
// for snprintf
#define snprintf _snprintf


//typedef int socklen_t;
//typedef char raw_type;       // Type used for raw data on this platform

#define EWOULDBLOCK WSAEWOULDBLOCK
#define ECONNRESET  WSAECONNRESET
#define ENOTCONN    WSAENOTCONN
#define ENOTSOCK    WSAENOTSOCK

#define MSG_NOSIGNAL 0
#define SHUT_WR     SD_SEND
#define SHUT_RD     SD_RECEIVE

#endif
#endif
